﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Visa.DB;

namespace VisaApp.Models
{
    public class YkienkhachhangModel
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string UserName { get; set; }
        public string Email { get; set; }
        public string NoiDung { get; set; }
        public Nullable<bool> Status { get; set; }
        public Nullable<System.DateTime> DateCreate { get; set; }
        public Nullable<bool> Detele { get; set; }
        public string title { get; set; }

        public string trangthai { get; set; }

        public static void MapFrom(YkienkhachhangModel model, ref Ykienkhachang entity)
        {
            entity.Id = model.Id;
            entity.UserName = model.UserName;
            entity.Name = model.Name;
            entity.Email = model.Email;
            entity.NoiDung = model.NoiDung;
            entity.Status = model.Status;
            entity.DateCreate = model.DateCreate;
            entity.Detele = model.Detele;
            entity.title = model.title;
        }

        public static void MapFrom(Ykienkhachang entity , ref YkienkhachhangModel model )
        {
            model.Id = entity.Id;
            model.UserName = entity.UserName;
            model.Email = entity.Email;
            model.NoiDung = entity.NoiDung;
            model.Status = entity.Status;
            model.DateCreate = entity.DateCreate;
            model.Detele = entity.Detele;
            model.Name = entity.Name;
            model.title = entity.title;
        }
    }
}